﻿using DesktopToy.Core.Common;

namespace DesktopToy.Test;

public class TestLunarDate
{
    [TestCase("2025/03/08", "二月初九")]
    [TestCase("2025/01/09", "腊月初十")]
    [TestCase("2025/01/30", "正月初二")]
    [TestCase("2025/08/08", "闰六月十五")]
    public void Test(string date, string lunarDate)
    {
        var result = Utils.GetLunarDate(DateTime.Parse(date));
        TestContext.WriteLine(result);
        Assert.That(result, Is.EqualTo(lunarDate));
    }
}